package com.newasia.server.serviceImpl.manage;

import com.newasia.server.common.tool.ChineseCharToEn;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;

/**
 * @author LiChong
 * @description 用于装载不同的分组
 * @date 2020/4/23
 */
@Data
public class MonitorStateListManage {

    private Integer quantity;
    private List<MonitorStateManage> topList;
    private List<MonitorStateManage> oneList;
    private List<MonitorStateManage> twoList;
    private List<MonitorStateManage> threeList;
    private List<MonitorStateManage> fourList;
    private List<MonitorStateManage> fiveList;
    private List<MonitorStateManage> sixList;
    private List<MonitorStateManage> sevenList;
    private List<MonitorStateManage> eightList;
    private List<MonitorStateManage> nineList;
    private List<MonitorStateManage> zeroList;
    private List<MonitorStateManage> aList;
    private List<MonitorStateManage> bList;
    private List<MonitorStateManage> cList;
    private List<MonitorStateManage> dList;
    private List<MonitorStateManage> eList;
    private List<MonitorStateManage> fList;
    private List<MonitorStateManage> gList;
    private List<MonitorStateManage> hList;
    private List<MonitorStateManage> iList;
    private List<MonitorStateManage> jList;
    private List<MonitorStateManage> kList;
    private List<MonitorStateManage> lList;
    private List<MonitorStateManage> mList;
    private List<MonitorStateManage> nList;
    private List<MonitorStateManage> oList;
    private List<MonitorStateManage> pList;
    private List<MonitorStateManage> qList;
    private List<MonitorStateManage> rList;
    private List<MonitorStateManage> sList;
    private List<MonitorStateManage> tList;
    private List<MonitorStateManage> uList;
    private List<MonitorStateManage> vList;
    private List<MonitorStateManage> wList;
    private List<MonitorStateManage> xList;
    private List<MonitorStateManage> yList;
    private List<MonitorStateManage> zList;
    private List<MonitorStateManage> otherList;

    public MonitorStateListManage() {
        topList = new ArrayList<MonitorStateManage>();
        aList = new ArrayList<MonitorStateManage>();
        bList = new ArrayList<MonitorStateManage>();
        cList = new ArrayList<MonitorStateManage>();
        dList = new ArrayList<MonitorStateManage>();
        eList = new ArrayList<MonitorStateManage>();
        fList = new ArrayList<MonitorStateManage>();
        gList = new ArrayList<MonitorStateManage>();
        hList = new ArrayList<MonitorStateManage>();
        iList = new ArrayList<MonitorStateManage>();
        jList = new ArrayList<MonitorStateManage>();
        kList = new ArrayList<MonitorStateManage>();
        lList = new ArrayList<MonitorStateManage>();
        mList = new ArrayList<MonitorStateManage>();
        nList = new ArrayList<MonitorStateManage>();
        oList = new ArrayList<MonitorStateManage>();
        pList = new ArrayList<MonitorStateManage>();
        qList = new ArrayList<MonitorStateManage>();
        rList = new ArrayList<MonitorStateManage>();
        sList = new ArrayList<MonitorStateManage>();
        tList = new ArrayList<MonitorStateManage>();
        uList = new ArrayList<MonitorStateManage>();
        vList = new ArrayList<MonitorStateManage>();
        wList = new ArrayList<MonitorStateManage>();
        xList = new ArrayList<MonitorStateManage>();
        yList = new ArrayList<MonitorStateManage>();
        zList = new ArrayList<MonitorStateManage>();
        oneList = new ArrayList<MonitorStateManage>();
        twoList = new ArrayList<MonitorStateManage>();
        threeList = new ArrayList<MonitorStateManage>();
        fourList = new ArrayList<MonitorStateManage>();
        fiveList = new ArrayList<MonitorStateManage>();
        sixList = new ArrayList<MonitorStateManage>();
        sevenList = new ArrayList<MonitorStateManage>();
        eightList = new ArrayList<MonitorStateManage>();
        nineList = new ArrayList<MonitorStateManage>();
        zeroList = new ArrayList<MonitorStateManage>();
        otherList = new ArrayList<MonitorStateManage>();
    }

    public void setTopList(MonitorStateManage manage) {
        this.topList.add(manage);
    }

    public void setaList(MonitorStateManage manage) {
        this.aList.add(manage);
    }

    public void setbList(MonitorStateManage manage) {
        this.bList.add(manage);
    }

    public void setcList(MonitorStateManage manage) {
        this.cList.add(manage);
    }

    public void setdList(MonitorStateManage manage) {
        this.dList.add(manage);
    }

    public void seteList(MonitorStateManage manage) {
        this.eList.add(manage);
    }

    public void setfList(MonitorStateManage manage) {
        this.fList.add(manage);
    }

    public void setgList(MonitorStateManage manage) {
        this.gList.add(manage);
    }

    public void sethList(MonitorStateManage manage) {
        this.hList.add(manage);
    }

    public void setiList(MonitorStateManage manage) {
        this.iList.add(manage);
    }

    public void setjList(MonitorStateManage manage) {
        this.jList.add(manage);
    }

    public void setkList(MonitorStateManage manage) {
        this.kList.add(manage);
    }

    public void setlList(MonitorStateManage manage) {
        this.lList.add(manage);
    }

    public void setmList(MonitorStateManage manage) {
        this.mList.add(manage);
    }

    public void setnList(MonitorStateManage manage) {
        this.nList.add(manage);
    }

    public void setoList(MonitorStateManage manage) {
        this.oList.add(manage);
    }

    public void setpList(MonitorStateManage manage) {
        this.pList.add(manage);
    }

    public void setqList(MonitorStateManage manage) {
        this.qList.add(manage);
    }

    public void setrList(MonitorStateManage manage) {
        this.rList.add(manage);
    }

    public void setsList(MonitorStateManage manage) {
        this.sList.add(manage);
    }

    public void settList(MonitorStateManage manage) {
        this.tList.add(manage);
    }

    public void setuList(MonitorStateManage manage) {
        this.uList.add(manage);
    }

    public void setvList(MonitorStateManage manage) {
        this.vList.add(manage);
    }

    public void setwList(MonitorStateManage manage) {
        this.wList.add(manage);
    }

    public void setxList(MonitorStateManage manage) { this.xList.add(manage); }

    public void setyList(MonitorStateManage manage) {
        this.yList.add(manage);
    }

    public void setzList(MonitorStateManage manage) {
        this.zList.add(manage);
    }

    public void setOtherList(MonitorStateManage manage) {
        this.otherList.add(manage);
    }

    public void addMonitorStateManage(MonitorStateManage manage){
        if(manage.isTop())
            topList.add(manage);
        String firstChar = ChineseCharToEn.ToFirstChar(manage.getMonitorName());
        switch (firstChar){
            case "a":
                aList.add(manage);
                break;
            case "b":
                bList.add(manage);
                break;
            case "c":
                cList.add(manage);
                break;
            case "d":
                dList.add(manage);
                break;
            case "e":
                eList.add(manage);
                break;
            case "f":
                fList.add(manage);
                break;
            case "g":
                gList.add(manage);
                break;
            case "h":
                hList.add(manage);
                break;
            case "i":
                iList.add(manage);
                break;
            case "j":
                jList.add(manage);
                break;
            case "k":
                kList.add(manage);
                break;
            case "l":
                lList.add(manage);
                break;
            case "m":
                mList.add(manage);
                break;
            case "n":
                nList.add(manage);
                break;
            case "o":
                oList.add(manage);
                break;
            case "p":
                pList.add(manage);
                break;
            case "q":
                qList.add(manage);
                break;
            case "r":
                rList.add(manage);
                break;
            case "s":
                sList.add(manage);
                break;
            case "t":
                tList.add(manage);
                break;
            case "u":
                uList.add(manage);
                break;
            case "v":
                vList.add(manage);
                break;
            case "w":
                wList.add(manage);
                break;
            case "x":
                xList.add(manage);
                break;
            case "y":
                yList.add(manage);
                break;
            case "z":
                zList.add(manage);
                break;
            case "1":
                oneList.add(manage);
                break;
            case "2":
                twoList.add(manage);
                break;
            case "3":
                threeList.add(manage);
                break;
            case "4":
                fourList.add(manage);
                break;
            case "5":
                fiveList.add(manage);
                break;
            case "6":
                sixList.add(manage);
                break;
            case "7":
                sevenList.add(manage);
                break;
            case "8":
                eightList.add(manage);
                break;
            case "9":
                nineList.add(manage);
                break;
            case "0":
                zeroList.add(manage);
                break;
            default :
                otherList.add(manage);
        }
    }
}
